<template>
  <div class="container">
    <img class="bg" src="@/assets/images/404.png" />
    <div class="btn">
      <a href="#" class="goindex" @click="back">返回</a>
      <div style="clear:both;"></div>
    </div>
  </div>
</template>
<script setup lang="js">
import { useRouter } from "vue-router";
const router = useRouter();
const back = () => {
  router.go(-1)
}

</script>
<style lang="less" scoped>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "微软雅黑";
}

.container {
  width: 100vw;
  height: 100vh;
  margin: 0 auto;
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  background-image: url('@/assets/images/404.png') ;
  background-size: cover;
}

img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.bg {
  display: block;
  max-width: 100%;
  margin: 0px auto;
  margin: 40px auto;
}

.btn {
  width: 400px;
  margin: 0 auto;
  max-width: 100%;
  margin-top: 40px;
}

.btn a {
  float: left;
  text-decoration: none;
  width: 46.5%;
  border: 1px solid #5298ff;
  background: #5298ff;
  color: #FFF;
  display: block;
  height: 46px;
  line-height: 44px;
  text-align: center;
  font-size: 16px;
  border-radius: 3px;
  overflow: hidden;
}

.btn .goindex {
  width: 420px;
}

.btn .lx {
  border: 1px solid #d8d8d8;
  background: #ffffff;
  color: #8c8c8c;
}

@media screen and (max-width: 500px) {
  .btn {
    width: 85%;
  }

  .btn a {
    width: 100%;
    font-size: 15px;
    height: 42px;
    line-height: 42px;
  }

  .btn .goindex {
    margin-right: 0;
    margin-bottom: 20px;
  }
}
</style>